package com.bdqn.mapper;

import com.bdqn.pojo.Patient;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

public interface PatientMapper {
    @Insert("insert into his_patient values(null,#{name},#{phone},#{sex},#{birthday},#{idCard},#{address})")
    int addPatient(Patient patient);
    @Select("select * from his_patient where id_card=#{idCard}")
    Patient getPatient(String idCard);
}
